package com.liruo.treasureattic.common.util.html.bookmark.model;

import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * @Author:liruo
 * @Date:2022-12-03-21:42:45
 * @Desc
 */
@Data
public class Folder{
    private String name;
    private final List<Url> urls = new ArrayList<>();
    private final List<Folder> subFolders = new ArrayList<>();

    public Folder() {
    }
    public Folder(String name) {
        this.name = name;
    }
    public void addUrl(Url url){
        urls.add(url);
    }
    public void addSubFolder(Folder subFolder){
        subFolders.add(subFolder);
    }
}
